//
//  AClass.h
//  2Delegate
//
//  Created by zhengwei on 2/4/16.
//  Copyright © 2016 zhengwei. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol BuyTicketDelegate;

@interface AClass : NSObject
@property(nonatomic,weak) id<BuyTicketDelegate> Delegate;// 接收委托
-(void)myBuyTicket;
@end
// 1 protocol:@protocol+@end

@protocol BuyTicketDelegate <NSObject>

@optional // 下面的方法不一定要实现
-(void)buyTicket;

@end